<template>
	<view style="background-color: #c00000;height: 100rpx;padding: 0 20rpx;position: sticky;z-index: 999;top: 0;" @click="tosearch">
		<view class="inputBox">
			<icon type="search"></icon>
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "my-search",
		data() {
			return {

			};
		},
		methods:{
			tosearch(){
				this.$emit('myclick')
			}
		}
	}
</script>

<style scoped>
	.inputBox {
		height: 60rpx;
		background-color: aliceblue;
		border-radius: 20rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}
</style>
